package com.ny.query;

import lombok.Data;
import javax.validation.constraints.NotNull;
import lombok.NoArgsConstructor;

/**
 * 健身资讯查询参数封装
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
@NoArgsConstructor
public class NewsQuery {

    @NotNull(groups = { QueryGroup.class }, message = "资讯ID不能为空")
    private Integer newsId;

    @NotNull(groups = { QueryGroup.class }, message = "页码不能为空")
    private Integer pageIndex;

    @NotNull(groups = { QueryGroup.class }, message = "每页记录数不能为空")
    private Integer pageSize;
}
